#include "wen_meshNew.h"
#include "importer/wen_importerWithAssimp.h"

using namespace wen;

MeshNew::MeshNew(const std::string& file)
:
m_strFileName(file),
m_pkImporter(new ImporterWithAssimp())
{
	//if(m_pkImporter->Load(m_strFileName, this))
	{
		//Node* li = m_pkImporter->GetRootNode();
		
		//AddChild(li);		
	}
}

MeshNew::~MeshNew()
{
}

Node* MeshNew::Load()
{
	if(m_pkImporter->Load(m_strFileName))
	{
		return m_pkImporter->GetRootNode();
	}

	return NULL;
}

/*void MeshNew::Update(float fTimeBetweenFrames)
{
	Node::Update(fTimeBetweenFrames);
}/*

/*void MeshNew::Draw(Render& rkRender)
{
	Node::Draw(rkRender);
}*/